package com.demo.reflection.demo1.domain;

public class TelePhone implements Phone {

    private String name;

    private String age;

    public TelePhone() {
    }

    public TelePhone(String name, String age) {
        this.name = name;
        this.age = age;
    }

    @Override
    public String callIn() {
        System.out.println("接受语音……");
        return "get info";
    }

    @Override
    public Boolean callOut(String info) {
        System.out.println("发送语音：" + info);
        return true;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}
